#include "dialogpoweroff.h"
#include "ui_dialogpoweroff.h"

Dialogpoweroff::Dialogpoweroff(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialogpoweroff)
{
    ui->setupUi(this);
}

Dialogpoweroff::~Dialogpoweroff()
{
    delete ui;
}

void Dialogpoweroff::on_pushButton_clicked()
{
    system("poweroff");//调用系统程序或系统命令
}

void Dialogpoweroff::on_pushButton_2_clicked()
{
    this->close();
}
